package com.example.service.impl;

import com.example.dao.InventoryDao;
import com.example.entity.Inventory;
import com.example.service.InventoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 库存服务实现类
 */
@Service
public class InventoryServiceImpl implements InventoryService {

    @Resource
    private InventoryDao inventoryDao;

    @Override
    public void addInventory(Inventory inventory) {
        inventory.setFlag("in");
        inventoryDao.add(inventory);
    }
} 